package cz.acies.data;

import java.io.Serializable;

import cz.acies.data.persist.UserLogin;

public class UserContext implements Serializable
{
	private static final long serialVersionUID = -7356006416072007138L;
	
	private String workerId;
	
	private UserLogin login;
	private DBConnector db;
	
	public UserContext() {}

	// -----  -----------------------------------------------------------------
	
	public String getWorkerId() {
		return workerId;
	}

	public void setWorkerId(String workerId) {
		this.workerId = workerId;
	}

	public DBConnector db() {
		return this.getDBConnector();
	}
	
	public DBConnector getDBConnector() {
		return db;
	}

	public void db(DBConnector db) {
		this.setDBConnector(db);
	}

	public void setDBConnector(DBConnector db) {
		this.db = db;
	}

	public UserLogin getLogin() {
		return login;
	}

	public void setLogin(UserLogin login) {
		this.login = login;
	}
}
